<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:forEach var="article" items="${articles}">
	<article>
		<h4 class="article-title">
			<a
				href="${pageContext.request.contextPath}/article?articleId=${article.id}">${article.title}</a>
		</h4>
		<ul class="article-meta">
			<li>『<fmt:formatDate value="${article.pubDate }" type="date"
					pattern="yyyy-MM-dd" />』
			</li>
			<li><span>|</span></li>
			<li><a
				href="${pageContext.request.contextPath}/category?categoryId=${article.id}">${article.category.name}</a></li>
			<li><span>|</span></li>
			<li>${article.clicks}&nbspViews</li>
			<li><span>|</span></li>
			<li>author：<a onclick="return false;" style="cursor: pointer;">${article.user.nickname}</a>
			</li>
		</ul>

		<section class="article-content clearfix article-page">
			<a href=""> <img src="image/article/${article.picture}"
				class="thumbnail">
			</a> ${article.remark}
		</section>
	</article>
	<hr />
</c:forEach>
<div class="page-nav">
	<ul class="pagination">${pageCode}
	</ul>
</div>